package com.huc.design.behavior.strategy.casedemo;

/**
 * @author huc
 * @version 1.0
 * @note 支付宝支付实现类
 * @date 2021/10/7 15:23
 */
public class AliPayStategyImpl implements ICompressStrategy {
    @Override
    public boolean pay(String name, String to, Integer money) {
        System.out.println(String.format("%s通过支付宝支付给%s元", name, to + money));
        return true;
    }

}
